package cn.tedu.project.oa.sys.user.pojo.entity;

import cn.tedu.project.oa.sys.role.pojo.entity.Role;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class User {
    @ApiModelProperty(value = "用户ID")
    private Long id;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "性别")
    private Integer gender;
    @ApiModelProperty(value = "真实姓名")
    private String fullName;
    @ApiModelProperty(value = "部门ID")
    private Long departmentId;
    @ApiModelProperty(value = "职位ID")
    private Long positionId;
    @ApiModelProperty(value = "账号状态")
    private Integer status;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    @ApiModelProperty(value = "角色列表")
    private List<Role> roles;
}
